<%@page pageEncoding="UTF-8"%>
<%@ include file="../WEB-INF/jspf/cabecalho.jspf" %>
<%@ include file="../WEB-INF/jspf/acesso.jspf" %>
<%@ include file="../WEB-INF/jspf/setMeta.jspf" %>

<sql:query var='rsetPrestador' dataSource='${con}'>    
    SELECT * FROM Prestador     
    WHERE idPrestador = '<c:out value="${param.chv1}"/>'
</sql:query>

<form name="form1" method="post" action="">
  <fieldset>
  <legend><font color="#0000FF"><strong>Dados de Prestador de Servi&ccedil;os</strong></font></legend>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <div align="center"> 
    <table >
      <tr> 
        <td><strong>C&oacute;digo:</strong></td>
        <td colspan="3"><input name="idPrestador" type="text" id="idPrestador" value="${param.chv1}" size="10" readonly="" /></td>
      </tr>
      <tr> 
        <td><strong>Raz&atilde;o Social:</strong></td>
        <td colspan="3"><input name="razaoSocialPrestador" type="text" id="razaoSocialPrestador" value="${rsetPrestador.rowsByIndex[0][1]}" size="50" readonly=""/></td>
      </tr>
      <tr> 
        <td height="23"><strong>CNPJ:</strong></td>
        <td colspan="3"><input name="cnpjPrestador" type="text" id="cnpjPrestador" value="${rsetPrestador.rowsByIndex[0][2]}" readonly="" /></td>
      </tr>
      <tr> 
        <td><strong>Telefone:</strong></td>
        <td colspan="3"><input name="telefonePrestador" type="text" id="telefonePrestador" value="${rsetPrestador.rowsByIndex[0][3]}" readonly="" /></td>
      </tr>
      <tr> 
        <td><strong>Fone-Fax:</strong></td>
        <td colspan="3"><input name="foneFaxPrestador" type="text" id="foneFaxPrestador" value="${rsetPrestador.rowsByIndex[0][4]}" readonly="" /></td>
      </tr>
      <tr> 
        <td><strong>Email:</strong></td>
        <td colspan="3"><input name="emailPrestador" type="text" id="emailPrestador" value="${rsetPrestador.rowsByIndex[0][5]}" size="30" readonly="" /></td>
      </tr>
      <tr> 
        <td><strong>Contato:</strong></td>
        <td colspan="3"><input name="contatoPrestador" type="text" id="contatoPrestador" value="${rsetPrestador.rowsByIndex[0][6]}" size="30" readonly=""/></td>
      </tr>
      <tr> 
        <td><strong>Status:</strong></td>
        <td colspan="3"><input name="statusPrestador" type="text" id="statusPrestador" value="${rsetPrestador.rowsByIndex[0][7]}" readonly="" /></td>
      </tr>
      <tr> 
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr> 
    </table>
  </div>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  </fieldset>
</form>

</body>
</html>
